home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 3.1 KB | 106 lines | [TEXT/GEOL] |
- Item 3371103 23-Jan-90 05:44
-
- From: MOOF Rollin, Keith A
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: 'ckid' resource format
-
- Hubi, fubolks:
-
- Several people have requested this. So here, without much fanfare, is the .r
- file for handling the 'ckid' resource from MPW's projector.
-
- Of particular interest should be the fourth and sixth fields. If the fourth
- field is non-zero, then the file is checked out for modifications. If the it is
- zero and the sixth field is also zero, then the file is checked out read-only.
- If the fourth field is zero and the sixth field is non-zero, then that means
- someone has executed "ModifyReadOnly" on that file.
-
- In other words (or charts):
-
- 6th field
- =0 <>0
- 4th field +----------------------------
- =0 | read-only modifyReadOnly
- <>0 | modifiable ???
-
-
- Miscellaneous:
- --------------
- I don't know what the LOC field means.
-
- The "branch" field (field 5) holds the letter of this branch (i.e., 'a', 'b',
- 'c', etc.). It holds zero if this revision is on the main branch.
-
- PID is the Project ID. Part 'a' is the time in seconds when the project was
- created. Part 'b' is the tickcount when the project was created. Hopefully,
- this will be sufficient to generate unique PID's for every project ever
- created.
-
- The 'pstring' and 'wstring' fields below are variable length fields ('pstring'
- is a string preceded by a length BYTE. 'wstring' is a string preceded by a
- length WORD). This means that you cannot directly represent this resource with
- a RECORD or struct in Pascal or C.
-
- This resource is for your application’s INFORMATION only. Please do not try to
- write to this resource, or create one of your own.
-
-
-
- Hope this helps,
-
- - Keith Rollin
- - Apple Developer Technical Support
-
-
-
-
- File 'ckid.r'
-
- /*******-----------------------------------------------------------------------
- NAME
- ckid.r - resource definition of the 'CKID' resource
-
- AUTHOR
- Peter Potrebic
- Copyright Apple Computer, Inc. 1987,1988
- All Rights Reserved
- -----------------------------------------------------------------------*******/
-
-
- type 'ckid'
- {
- unsigned longint; /* checksum */
- unsigned longint LOC = 1071985200; /* location identifier */
- integer version = 4;/* ckid version number */
- integer readOnly = 0; /* Check out state, if != 0 it is the dummy revID */
- Byte noBranch = 0; /* if modifiable & Byte != 0 then branch was made on
- check out */
- Byte clean = 0, MODIFIED = 1; /* did user modify a read-only file */
- unsigned longint UNUSED;/* not used */
- unsigned longint; /* date and time of checkout */
- unsigned longint; /* mod date of file */
-
- unsigned longint; /* PID.a */
- unsigned longint; /* PID.b */
-
- integer;/* user ID */
- integer;/* file ID */
- integer;/* rev ID */
-
- pstring;/* Project path */
- Byte = 0;
- pstring;/* User name */
- Byte = 0;
- pstring;/* Revision number */
- Byte = 0;
- pstring;/* File name */
- Byte = 0;
- pstring;/* task */
- Byte = 0;
- wstring;/* comment */
- Byte = 0;
- };
-
-